package meconsea.webcoll.uc.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import meconsea.webcoll.base.entity.AbsEntity;
import meconsea.webcoll.base.entity.IEntity;

import org.hibernate.annotations.Type;

@SuppressWarnings("serial")
@Entity
@Table(name="uc_user")
public class UcUser extends AbsEntity implements IEntity {
	@Column(name="loginname",length=32)
	private String loginName;
	@Column(name="password",length=64)
	private String password;
	@Column(name="nickName",length=128)
	private String nickName;
	@Column(name="icon",length=128)
	private String icon;
	@Column(name="email",length=32)
	private String email;
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="lastLogin")
	private Date lastLogin = new Date();
	
	@Column(name="isonline")
	@Type(type="integer")
	private int isOnline;
	@Column(name="publicDegree")
	@Type(type="integer")
	private int publicDegree;
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getLastLogin() {
		return lastLogin;
	}
	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}
	public int getIsOnline() {
		return isOnline;
	}
	public void setIsOnline(int isOnline) {
		this.isOnline = isOnline;
	}
	public int getPublicDegree() {
		return publicDegree;
	}
	public void setPublicDegree(int publicDegree) {
		this.publicDegree = publicDegree;
	}
}
